/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class TarjetaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression id_tarjeta;
	public final StringExpression nombre;
	public final StringExpression clave;
	
	public TarjetaDetachedCriteria() {
		super(orm.Tarjeta.class, orm.TarjetaCriteria.class);
		id_tarjeta = new IntegerExpression("id_tarjeta", this.getDetachedCriteria());
		nombre = new StringExpression("nombre", this.getDetachedCriteria());
		clave = new StringExpression("clave", this.getDetachedCriteria());
	}
	
	public TarjetaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.TarjetaCriteria.class);
		id_tarjeta = new IntegerExpression("id_tarjeta", this.getDetachedCriteria());
		nombre = new StringExpression("nombre", this.getDetachedCriteria());
		clave = new StringExpression("clave", this.getDetachedCriteria());
	}
	
	public ClienteDetachedCriteria createClienteid_clienteCriteria() {
		return new ClienteDetachedCriteria(createCriteria("clienteid_cliente"));
	}
	
	public CoordenadasDetachedCriteria createCoordenadasCriteria() {
		return new CoordenadasDetachedCriteria(createCriteria("ORM_Coordenadas"));
	}
	
	public Tarjeta uniqueTarjeta(PersistentSession session) {
		return (Tarjeta) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tarjeta[] listTarjeta(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tarjeta[]) list.toArray(new Tarjeta[list.size()]);
	}
}

